package com.lsq.wuyuge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author 一声闷雷
 * @since 2025-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("comment")
//@ApiModel(value="Comment对象", description="评论表")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    //@ApiModelProperty(value = "评论ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //@ApiModelProperty(value = "文章ID")
    private Long articleId;

    //@ApiModelProperty(value = "评论用户ID")
    private Long userId;

    //@ApiModelProperty(value = "评论内容")
    private String content;

    //@ApiModelProperty(value = "父评论ID，顶级评论为0")
    private Long parentId;

    //@ApiModelProperty(value = "被回复用户ID，顶级评论为0")
    private Long replyUserId;

    //@ApiModelProperty(value = "点赞数")
    private Integer likeCount;

    //@ApiModelProperty(value = "状态：0-正常，1-被举报，2-已删除")
    private Integer status;

    //@ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    //@ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    //@ApiModelProperty(value = "是否删除：0-未删除，1-已删除")
    private Integer deleted;


}
